<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title><{if $env.conf.desktop.background.title}><{$env.conf.desktop.background.title}><{else}>登录<{/if}></title>
  <link rel="shortcut icon" href="<{$env.base_full_url}>/favicon.gif" type="image/gif">
  <link href="<{$env.app.res_url}>/css/framework.css" rel="stylesheet">
  <link href="<{$env.app.res_url}>/css/default/login.css" rel="stylesheet">
  <link href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
</head>
<body class="login-wrapper">
  <!-- <div class="login-wrapper__view_layer"></div> -->
  <div class="form-wrapper">
    <div class="session-form__header">
      <h2 class="session-form__title">
          <span>登录</span>
      </h2>
    </div>
    <{foreach from=$passports item=item}>
    <{$item.html}>
    <{/foreach}>
  </div>
  <{if $desktop_login_verify}><{$desktop_login_verify}><{/if}>
  <script>
    void function() {
      var sURL = location.href;
      var sTitle = document.title;
      addFavorite = function() {
        try {
          window.external.addFavorite(sURL, sTitle);
        } catch (e) {
          try {
            window.sidebar.addPanel(sTitle, sURL, "");
          } catch (e) {
            var c = "ctrl";
            if (navigator.platform.match(/mac/i)) {
              c = "command"
            }
            alert("<{t}>请使用键盘上<{/t}>\n\n" + c + "+D\n\n<{t}>进行收藏操作。<{/t}>");
          }
        }
        return false;
      }
      createShortcut = function() {

        var sname = document.title.replace(/\s/ig, '');
        var surl = location.href;
        document.createshortcuts.furl.value = surl;
        document.createshortcuts.fname.value = sname;
        document.createshortcuts.submit();
      }
    }();
  </script>
  <form action="index.php?app=desktop&ctl=createshortcuts" name="createshortcuts" target="_blank" method="post">
    <input type="hidden" name="furl" value="" />
    <input type="hidden" name="fname" value="" />
  </form>
</body>

</html>